/*
* Code that contains WinMain and creates our window
*/
#include <vld.h>
#include "InputManager.h"
#include "GameApp.h"
#include <time.h>

#define WIN32_LEAN_AND_MEAN


int WINAPI WinMain(	HINSTANCE	hInstance,			// Instance
					HINSTANCE	hPrevInstance,		// Previous Instance
					LPSTR		lpCmdLine,			// Command Line Parameters
					int			nCmdShow)			// Window Show State
{
	GameApp* pGame = GameApp::GetInstance();
	int res = 0;
	if (pGame)
	{
		res = pGame->Start(hInstance);
		GameApp::Destroy();
	}

	return res;
}
